class MyThread1 extends Thread{
    public void run(){
         while(true)
        System.out.println("T1");
    }
}
class MyThread2 extends Thread{
    public void run(){
        while(true)
            System.out.println("T2");
    }
}
public class Test1 {
    public static void main(String[] args) {
        MyThread1 t1 = new MyThread1() ;
        MyThread2 t2 = new MyThread2() ;
          t1.run();
          t2.start();
        while(true){
            System.out.println("main");
        }
    }
}
